GBML manual / Constants

BACKDROP_SUNSET

A sunset sky: deep blue at the top, then purple, rose and orange, with a golden glow at the bottom.

Works differently on Game Boy - On the Game Boy the sky becomes bands of its 4 shades (see screen_backdrop), so the sky shows only where the picture leaves the shade for the sky; the sky has to be named in the call.

Works differently on Game Boy Color - On the Game Boy Color the sky's colors go row by row into the picture's first color (see screen_backdrop), so the sky shows only where the picture uses that color; it has to be named in the call.

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

BACKDROP_SUNSET: constant

<!-- GENERATED by tools/gbabel_looks.py from its LOOKS registry. Never edit this page: change the registry and re-run it. -->

Description

Names the sunset sky, for screen_backdrop. The backdrop is the color that fills the screen behind every picture, and with this look it changes on every row of the screen: night blue at the top, then purple, rose and orange, ending in gold.

Only the places where nothing else is drawn show it - a floor, a wall or a picture drawn on top hides it - so it is for rooms with open sky. strength picks how rich the colors are: 1 is pale and dreamy, 2 is in between, 3 is full color.

The sky is drawn twice as tall as the screen, and speed slides the screen down it and back again - slowly, so the sun seems to set and rise. A speed of 0 holds one view of the sky still; 0.25 takes about ten seconds to go from the blue top to the golden glow.

A real capture, three pictures of the same sunset sky - strength 1 (pale and dreamy), strength 2 (in between) and strength 3 (full color) - the same rows of the sky each time, with a lighthouse on dark ground in frontA real capture, three pictures of the same sunset sky - strength 1 (pale and dreamy), strength 2 (in between) and strength 3 (full color) - the same rows of the sky each time, with a lighthouse on dark ground in front
A real capture, three pictures of the same sunset sky - strength 1 (pale and dreamy), strength 2 (in between) and strength 3 (full color) - the same rows of the sky each time, with a lighthouse on dark ground in front

One sky, one place in it, three strengths: 1, 2 and 3 from left to right. Real pictures from a Game Boy Advance ROM, each one a slice of the screen.

Example

screen_backdrop(BACKDROP_SUNSET, 2, 0.25);

A sunset that sets slowly. Call it once, for example when the room starts - it keeps going by itself until you call screen_backdrop(BACKDROP_NONE, 0, 0) or a room is loaded.

See also: screen_backdropBACKDROP_NONE